home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- rem This utility will shrink your download.txt file according to several
- rem options specified in the config file. You'll have to be careful
- rem about when and where you run this, as it could cause sharing
- rem violations if you do it at the wrong time (right when PCBoard is
- rem accessing the DOWNLOAD.TXT file). My suggestion is to only run it
- rem manually every once in a while. The alternative is to make sure all
- rem nodes are down (so no xfers are taking place) and then running it.
- rem
- rem Other improvements to add:
- rem 1. Remove by arbitrary filename and/or extension
- rem 2. Truncate according to date (this isn't terribly important
- rem since if you remove files that don't exist, it gets rid of
- rem all the old files anyway).
- rem
- rem The following example assumes you have specified the output file as
- rem "c:\pcb\main\download.out"
- rem
- dtc
- ren c:\pcb\main\download.txt c:\pcb\main\download.bak
- ren c:\pcb\main\download.out c:\pcb\main\download.txt
-